package com.zxq.matchingSystem.service.impl;

import com.zxq.matchingSystem.service.MatchingService;
import com.zxq.matchingSystem.service.impl.utils.MatchingPool;
import com.zxq.matchingSystem.service.impl.utils.Player;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class MatchingServiceImpl implements MatchingService {

    public final static MatchingPool matchingPool=new MatchingPool();

    @Override
    public String addPlayer(Integer userId, Integer rating,Integer botId) {
        System.out.println("addPlay " +userId+" "+rating);
        matchingPool.addPlayer(userId,rating,botId);
        return "add success";
    }

    @Override
    public String removePlayer(Integer userId) {
        System.out.println("remove " +userId);
        matchingPool.removePlayer(userId);
        return "remove success";
    }
}
